my_foods = ['pizza', 'falafel', 'carrot cake']
friend_foods = my_foods[:] # 复制列表，用切片实现传递副本
equal_foods = my_foods # 直接用=赋值是传递指针

my_foods.append('ice cream')

print(my_foods)
print(equal_foods)
print(friend_foods)